package com.feri.fitness.api.feign;

import com.feri.fitness.common.vo.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestPart;
import org.springframework.web.multipart.MultipartFile;

/**
 * .::::.
 * .::::::::.
 * :::::::::::  I && YOU
 * ..:::::::::::'
 * '::::::::::::'
 * .::::::::::
 * '::::::::::::::..
 * ..::::::::::::.
 * ``::::::::::::::::
 * ::::``:::::::::'        .:::.
 * ::::'   ':::::'       .::::::::.
 * .::::'      ::::     .:::::::'::::.
 * .:::'       :::::  .:::::::::' ':::::.
 * .::'        :::::.:::::::::'      ':::::.
 * .::'         ::::::::::::::'         ``::::.
 * ...:::           ::::::::::::'              ``::.
 * ````':.          ':::::::::'                  ::::..
 * '.:::::'                    ':'````..
 * ━━━━━━永无BUG!━━━━━━
 *
 * @Description:
 * @Author: 邢朋辉
 * @Date: 2023/1/12 11:27
 */
@FeignClient(value = "FitnessNetworkServer")
public interface AliOssService {
    /**
     * 上传图片*/
    @PostMapping(value = "/server/osslog/uploadimg.do",consumes = MediaType.MULTIPART_FORM_DATA_VALUE)
    R uploadImg(@RequestPart MultipartFile file);
    /**
     * 上传视频*/
    @PostMapping(value = "/server/osslog/uploadvideo.do",consumes = MediaType.MULTIPART_FORM_DATA_VALUE)
    R uploadVideo(@RequestPart MultipartFile file);

    /**
     * 查询 所有数据*/
    @GetMapping("/server/osslog/all.do")
    R all();
}
